package com.whstudio.util.mvc.data.sql;

public class Arg{
	private ISql subSql=null;
	private String column=null;
	private String condition=null;
	private String value=null;
	private String placeholder=null;
	private boolean noValue=false;
	
	public void setSubSql(ISql e){
		this.subSql=e;
	}
	public ISql getSubSql(){
		return subSql;
	}
	public String getCondition() {
		return condition;
	}
	public void setCondition(String condition) {
		this.condition = condition==null?"=":condition.trim().toUpperCase();
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		value=value==null?"":value.trim();
		this.value = value;
	}
	public String getPlaceholder() {
		return placeholder;
	}
	public void setPlaceholder(String placeholder) {
		this.placeholder = placeholder==null?"":placeholder.trim().toUpperCase();
	}
	public String getColumn() {
		return column;
	}
	public void setColumn(String column) {
		this.column = column;
	}
	public boolean isNoValue() {
		return noValue;
	}
	public void setNoValue(boolean noValue) {
		this.noValue = noValue;
	}
}
